class SMSController
  def initialize(conf)
    @sendsms = conf[:sendsms]
    @dlr = conf[:dlr]
  end

  def send_sms
    
  end
end

class String
  def msisdn?
  true if self =~ /^(\+63|63|0)([0-9]{9,})/
  end

  def to_msisdn
    self.gsub(/[il]/i, '1').gsub(/o/i,'0').gsub(/[^\d]/,'').gsub(/^(\+63|63|063)/, '0')
  end

end

class CGI
  def self.create_query p
    p.collect {|k,v| "#{k}=#{self.escape(v.to_s)}"}.join('&')
  end
end

